import request from '@/utils/request'

// 查询客户档案列表
export function listProfiles(query) {
  return request({
    url: '/cus/profiles/list',
    method: 'get',
    params: query
  })
}

// 查询客户档案详细
export function getProfiles(id) {
  return request({
    url: '/cus/profiles/' + id,
    method: 'get'
  })
}

// 新增客户档案
export function addProfiles(data) {
  return request({
    url: '/cus/profiles',
    method: 'post',
    data: data
  })
}

// 修改客户档案
export function updateProfiles(data) {
  return request({
    url: '/cus/profiles',
    method: 'put',
    data: data
  })
}

// 删除客户档案
export function delProfiles(id) {
  return request({
    url: '/cus/profiles/' + id,
    method: 'delete'
  })
}
